import React from 'react';
import {
    Routes,
    Route, useRoutes
} from "react-router-dom";
import "./App.less";
import Index from "@/pages/Index";
import Login from "@/pages/Login";
import NotFound from "@/pages/NotFound";
function App() {
    const renderRouter = useRoutes([
        {
            path:"/",
            element:<Index/>
        },{
            path:"/login",
            element:<Login/>
        },{
            path:"*",
            element:<NotFound/>
        }
    ])
    return renderRouter;
}

export default App;